import request from '/@/utils/request';

// 查询【请填写功能名称】列表
export function listRecord(query?: Object) {
  return request({
    url: '/module/devices/getRecord/list',
    method: 'get',
    params: query
  })
}


// 查询一体机领取记录列表
export function listTongjiRecord(query?: Object) {
  return request({
    url: '/module/devices/tongji/list',
    method: 'get',
    params: query
  })
}
// 查询奖励领取记录列表
export function listTongjiReward(query?: Object) {
  return request({
    url: '/module/wxPay/transaction/reward/list',
    method: 'get',
    params: query
  })
}
// 查询【请填写功能名称】详细
export function getRecord(id?: number) {
  return request({
    url: '/module/devices/getRecord/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addRecord(data?: Object) {
  return request({
    url: '/module/devices/getRecord',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateRecord(data?: Object) {
  return request({
    url: '/module/devices/getRecord',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delRecord(id?: number) {
  return request({
    url: '/module/devices/getRecord/' + id,
    method: 'delete'
  })
}

// 导出【请填写功能名称】
export function exportRecord(query?: Object) {
  return request({
    url: '/module/devices/getRecord/export',
    method: 'get',
    params: query
  })
}



// 导出【请填写功能名称】
export function exportTotalRecord(query?: Object) {
  return request({
    url: '/module/devices/getRecord/exportTotal',
    method: 'get',
    params: query
  })
}

